<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:forEach items="${orders }" var="order">
<tr class="">
  <td class="">${order.index }</td>
	<td class="">${order.order_no }</td>
	<td class="">${order.order_date_display }</td>
	<td class="">${order.total_amount }</td>
	<td class="">${order.pay_rate }</td>
	<td class="">${order.receive_amount }</td>
	<td class="">${order.name }</td>
	<td class="">${order.telphone }</td>
	<td class="">${order.pay_status_display }</td>
	<td class="">${order.send_status_display }</td>
	<td class="">${order.store_name }</td>
	<td class=""><a href="javascript:;" target="_blank" onclick='detail("${order.id}","${order.customer_id }")'>查看</a></td>
	<td class="">
		<c:if test="${order.pay_rate ne 1 }">
			<a href="${basePath }/trade/advance_pay.htm?id=${order.order_id}" target="_blank">结算</a>
		</c:if>
		&nbsp;
		<c:if test="${order.send_status ne 3 }">
			<a href="${basePath }/trade/advance_send_view.htm?orderId=${order.order_id}&customerId=${order.customer_id}" target="_blank">发货</a>
		</c:if>
		&nbsp;
		<c:if test="${order.pay_status eq 1 }">
			<a href="javascript:;" onclick='full("${order.advance_id}");'>已全结</a>
		</c:if>
	</td>
</tr>
</c:forEach>